package com.weimall.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class GgLrbExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GgLrbExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andXmIsNull() {
            addCriterion("XM is null");
            return (Criteria) this;
        }

        public Criteria andXmIsNotNull() {
            addCriterion("XM is not null");
            return (Criteria) this;
        }

        public Criteria andXmEqualTo(String value) {
            addCriterion("XM =", value, "xm");
            return (Criteria) this;
        }

        public Criteria andXmNotEqualTo(String value) {
            addCriterion("XM <>", value, "xm");
            return (Criteria) this;
        }

        public Criteria andXmGreaterThan(String value) {
            addCriterion("XM >", value, "xm");
            return (Criteria) this;
        }

        public Criteria andXmGreaterThanOrEqualTo(String value) {
            addCriterion("XM >=", value, "xm");
            return (Criteria) this;
        }

        public Criteria andXmLessThan(String value) {
            addCriterion("XM <", value, "xm");
            return (Criteria) this;
        }

        public Criteria andXmLessThanOrEqualTo(String value) {
            addCriterion("XM <=", value, "xm");
            return (Criteria) this;
        }

        public Criteria andXmLike(String value) {
            addCriterion("XM like", value, "xm");
            return (Criteria) this;
        }

        public Criteria andXmNotLike(String value) {
            addCriterion("XM not like", value, "xm");
            return (Criteria) this;
        }

        public Criteria andXmIn(List<String> values) {
            addCriterion("XM in", values, "xm");
            return (Criteria) this;
        }

        public Criteria andXmNotIn(List<String> values) {
            addCriterion("XM not in", values, "xm");
            return (Criteria) this;
        }

        public Criteria andXmBetween(String value1, String value2) {
            addCriterion("XM between", value1, value2, "xm");
            return (Criteria) this;
        }

        public Criteria andXmNotBetween(String value1, String value2) {
            addCriterion("XM not between", value1, value2, "xm");
            return (Criteria) this;
        }

        public Criteria andHcIsNull() {
            addCriterion("HC is null");
            return (Criteria) this;
        }

        public Criteria andHcIsNotNull() {
            addCriterion("HC is not null");
            return (Criteria) this;
        }

        public Criteria andHcEqualTo(Integer value) {
            addCriterion("HC =", value, "hc");
            return (Criteria) this;
        }

        public Criteria andHcNotEqualTo(Integer value) {
            addCriterion("HC <>", value, "hc");
            return (Criteria) this;
        }

        public Criteria andHcGreaterThan(Integer value) {
            addCriterion("HC >", value, "hc");
            return (Criteria) this;
        }

        public Criteria andHcGreaterThanOrEqualTo(Integer value) {
            addCriterion("HC >=", value, "hc");
            return (Criteria) this;
        }

        public Criteria andHcLessThan(Integer value) {
            addCriterion("HC <", value, "hc");
            return (Criteria) this;
        }

        public Criteria andHcLessThanOrEqualTo(Integer value) {
            addCriterion("HC <=", value, "hc");
            return (Criteria) this;
        }

        public Criteria andHcIn(List<Integer> values) {
            addCriterion("HC in", values, "hc");
            return (Criteria) this;
        }

        public Criteria andHcNotIn(List<Integer> values) {
            addCriterion("HC not in", values, "hc");
            return (Criteria) this;
        }

        public Criteria andHcBetween(Integer value1, Integer value2) {
            addCriterion("HC between", value1, value2, "hc");
            return (Criteria) this;
        }

        public Criteria andHcNotBetween(Integer value1, Integer value2) {
            addCriterion("HC not between", value1, value2, "hc");
            return (Criteria) this;
        }

        public Criteria andBqIsNull() {
            addCriterion("BQ is null");
            return (Criteria) this;
        }

        public Criteria andBqIsNotNull() {
            addCriterion("BQ is not null");
            return (Criteria) this;
        }

        public Criteria andBqEqualTo(BigDecimal value) {
            addCriterion("BQ =", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqNotEqualTo(BigDecimal value) {
            addCriterion("BQ <>", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqGreaterThan(BigDecimal value) {
            addCriterion("BQ >", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("BQ >=", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqLessThan(BigDecimal value) {
            addCriterion("BQ <", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqLessThanOrEqualTo(BigDecimal value) {
            addCriterion("BQ <=", value, "bq");
            return (Criteria) this;
        }

        public Criteria andBqIn(List<BigDecimal> values) {
            addCriterion("BQ in", values, "bq");
            return (Criteria) this;
        }

        public Criteria andBqNotIn(List<BigDecimal> values) {
            addCriterion("BQ not in", values, "bq");
            return (Criteria) this;
        }

        public Criteria andBqBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("BQ between", value1, value2, "bq");
            return (Criteria) this;
        }

        public Criteria andBqNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("BQ not between", value1, value2, "bq");
            return (Criteria) this;
        }

        public Criteria andLjIsNull() {
            addCriterion("LJ is null");
            return (Criteria) this;
        }

        public Criteria andLjIsNotNull() {
            addCriterion("LJ is not null");
            return (Criteria) this;
        }

        public Criteria andLjEqualTo(BigDecimal value) {
            addCriterion("LJ =", value, "lj");
            return (Criteria) this;
        }

        public Criteria andLjNotEqualTo(BigDecimal value) {
            addCriterion("LJ <>", value, "lj");
            return (Criteria) this;
        }

        public Criteria andLjGreaterThan(BigDecimal value) {
            addCriterion("LJ >", value, "lj");
            return (Criteria) this;
        }

        public Criteria andLjGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("LJ >=", value, "lj");
            return (Criteria) this;
        }

        public Criteria andLjLessThan(BigDecimal value) {
            addCriterion("LJ <", value, "lj");
            return (Criteria) this;
        }

        public Criteria andLjLessThanOrEqualTo(BigDecimal value) {
            addCriterion("LJ <=", value, "lj");
            return (Criteria) this;
        }

        public Criteria andLjIn(List<BigDecimal> values) {
            addCriterion("LJ in", values, "lj");
            return (Criteria) this;
        }

        public Criteria andLjNotIn(List<BigDecimal> values) {
            addCriterion("LJ not in", values, "lj");
            return (Criteria) this;
        }

        public Criteria andLjBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("LJ between", value1, value2, "lj");
            return (Criteria) this;
        }

        public Criteria andLjNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("LJ not between", value1, value2, "lj");
            return (Criteria) this;
        }

        public Criteria andKmbmIsNull() {
            addCriterion("KMBM is null");
            return (Criteria) this;
        }

        public Criteria andKmbmIsNotNull() {
            addCriterion("KMBM is not null");
            return (Criteria) this;
        }

        public Criteria andKmbmEqualTo(String value) {
            addCriterion("KMBM =", value, "kmbm");
            return (Criteria) this;
        }

        public Criteria andKmbmNotEqualTo(String value) {
            addCriterion("KMBM <>", value, "kmbm");
            return (Criteria) this;
        }

        public Criteria andKmbmGreaterThan(String value) {
            addCriterion("KMBM >", value, "kmbm");
            return (Criteria) this;
        }

        public Criteria andKmbmGreaterThanOrEqualTo(String value) {
            addCriterion("KMBM >=", value, "kmbm");
            return (Criteria) this;
        }

        public Criteria andKmbmLessThan(String value) {
            addCriterion("KMBM <", value, "kmbm");
            return (Criteria) this;
        }

        public Criteria andKmbmLessThanOrEqualTo(String value) {
            addCriterion("KMBM <=", value, "kmbm");
            return (Criteria) this;
        }

        public Criteria andKmbmLike(String value) {
            addCriterion("KMBM like", value, "kmbm");
            return (Criteria) this;
        }

        public Criteria andKmbmNotLike(String value) {
            addCriterion("KMBM not like", value, "kmbm");
            return (Criteria) this;
        }

        public Criteria andKmbmIn(List<String> values) {
            addCriterion("KMBM in", values, "kmbm");
            return (Criteria) this;
        }

        public Criteria andKmbmNotIn(List<String> values) {
            addCriterion("KMBM not in", values, "kmbm");
            return (Criteria) this;
        }

        public Criteria andKmbmBetween(String value1, String value2) {
            addCriterion("KMBM between", value1, value2, "kmbm");
            return (Criteria) this;
        }

        public Criteria andKmbmNotBetween(String value1, String value2) {
            addCriterion("KMBM not between", value1, value2, "kmbm");
            return (Criteria) this;
        }

        public Criteria andYsfIsNull() {
            addCriterion("YSF is null");
            return (Criteria) this;
        }

        public Criteria andYsfIsNotNull() {
            addCriterion("YSF is not null");
            return (Criteria) this;
        }

        public Criteria andYsfEqualTo(String value) {
            addCriterion("YSF =", value, "ysf");
            return (Criteria) this;
        }

        public Criteria andYsfNotEqualTo(String value) {
            addCriterion("YSF <>", value, "ysf");
            return (Criteria) this;
        }

        public Criteria andYsfGreaterThan(String value) {
            addCriterion("YSF >", value, "ysf");
            return (Criteria) this;
        }

        public Criteria andYsfGreaterThanOrEqualTo(String value) {
            addCriterion("YSF >=", value, "ysf");
            return (Criteria) this;
        }

        public Criteria andYsfLessThan(String value) {
            addCriterion("YSF <", value, "ysf");
            return (Criteria) this;
        }

        public Criteria andYsfLessThanOrEqualTo(String value) {
            addCriterion("YSF <=", value, "ysf");
            return (Criteria) this;
        }

        public Criteria andYsfLike(String value) {
            addCriterion("YSF like", value, "ysf");
            return (Criteria) this;
        }

        public Criteria andYsfNotLike(String value) {
            addCriterion("YSF not like", value, "ysf");
            return (Criteria) this;
        }

        public Criteria andYsfIn(List<String> values) {
            addCriterion("YSF in", values, "ysf");
            return (Criteria) this;
        }

        public Criteria andYsfNotIn(List<String> values) {
            addCriterion("YSF not in", values, "ysf");
            return (Criteria) this;
        }

        public Criteria andYsfBetween(String value1, String value2) {
            addCriterion("YSF between", value1, value2, "ysf");
            return (Criteria) this;
        }

        public Criteria andYsfNotBetween(String value1, String value2) {
            addCriterion("YSF not between", value1, value2, "ysf");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}